package com.sc.sysconfig.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;


/**
 * sys dict类型
 *
 * @author 徐赫阳
 * @date 2021/09/03
 */
@Data
public class SysDict extends SysBase implements Serializable {

    /**
     * 串行版本uid
     */
    private static final long serialVersionUID = -79881763007534065L;

    @ApiModelProperty(value="字典名称")
    private String name;

    @ApiModelProperty(value="字典描述")
    private String dictDesc;

    @ApiModelProperty(value="字典值")
    private Integer dictValue;

    @TableLogic(value = "0",delval = "1")
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value="删除标识")
    private Integer isDel;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(value="上级字典id")
    private Integer parent;

    @TableField(exist = false)
    @ApiModelProperty(value="子项")
    private List<SysDict> children;



}
